/*
 * @Author: DUST
 * @Date: 2023-07-03 10:44:15
 * @LastEditors: DUST
 * @LastEditTime: 2023-07-03 10:44:20
 * @FilePath: \koa-node-ts\app\config\index copy.ts
 * @Description: 
 * undefined
 */
const config  = {
  server: {
    port: 9120
    // port: process.env.SERVER_PORT
  },
  // 数据库配置
  db: {
    db_host: "127.0.0.1",
    // db_host: process.env.DB_HOST,
    db_name: "study_base",
    // db_name: process.env.DB_NAME,
    db_user: "root",
    // db_user: process.env.DB_USER,
    db_post: "3306",
    // db_post: process.env.DN_PORT,
    db_password: "root",
    // db_password: process.env.DB_PAWSSWORD,
    db_debuge: "true",
    // db_debuge: process.env.DB_DEBUGE,
  },
  // 安全验证配置
  jwt: {
    secret: "chenkong",
    // secret: process.env.JWT_SECRET,
    expire: "30d",
    // expire: process.env.JWT_EXPIRE,
  },
  static: {
    // path: process.env.STATC_PATH,
    path: "static",
  },
  // 日志配置
  log: {
    appenders: {
      cheese: { type: "file", filename: "logs/cheese.log" },
      access: { type: "file", filename: "logs/access.log" },
      db: { type: "file", filename: "logs/db.log" },
    },
    categories: {
      default: { appenders: ["cheese"], level: "info" },
      access: { appenders: ["access"], level: "info" },
      db: { appenders: ["db"], level: "info" },
    },
  },
  AmapKey: {
    appKey: "d7d1f0b0a476b8c8a2932bff07cb0033"
    // appKey: process.env.AMAPKEY
  }
}

export default config;